//
//  NSString+Date.m
//  AppointmentForCar
//
//  Created by TheMacBook on 2016/11/15.
//  Copyright © 2016年 Herron. All rights reserved.
//

#import "NSString+Date.h"

@implementation NSString (Date)
+ (NSString *)nowDate
{
    NSDate *currentDate = [NSDate date];//获取当前时间，日期
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"YYYY-MM-dd hh:mm"];
    NSString *dateString = [dateFormatter stringFromDate:currentDate];
    return dateString;
}
@end
